<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"  
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<ui:composition template="/visao/templates/templateHome.xhtml">
	<ui:define name="title">
		<h:outputText value="#{i18n['mov.nome']} #{i18n['receb.mov.impressao']}" />
	</ui:define>

	<ui:define name="content">
		<p:panel>
			<applet name="appletImpressao" id="appletImpressao"
				archive="http://#{request.serverName}:#{request.serverPort}#{request.contextPath}/applet.jar"
				code="com.triadsystems.applet.Impressao.class" style="border:none; left:35%; position:relative; height:110px; width:250px;" >
				<param name="paramImpressao" value="#{fechamentoBean.reciboFechamento}" />
				<param name="paramImpressao2" value="" />
				<param name="paramImpressao3" value="" />
			</applet>
			<p:separator/>
			<p:spacer height="20"/>
		</p:panel>
		<h:form id="formImpressaoFechamento">
			<h:panelGrid columns="2" cellpadding="3" cellspacing="3">
				<p:commandButton id="btnVoltar" rendered="#{fechamentoBean.btnVoltar}"
					action="#{fechamentoBean.doAcessarFechamento}" icon="ui-icon-circle-arrow-w"
					title="#{i18n['receb.mov.voltaRecebimento']}" value="#{i18n['receb.mov.voltaRecebimento']}" />
				<p:commandButton id="btnHome" 
					title="#{i18n['btnHome']}" value="#{i18n['btnHome']}" 
					ajax="false" icon="ui-icon-home" action="#{fechamentoBean.doShowHome}"  />
			</h:panelGrid>
		</h:form>
	</ui:define>
</ui:composition>
</html>